<%@page import="doantotnghiep.modelDTO.MedicamentDTO"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Chi tiết nhập hàng</title>
</head>
<body>
	<% float tong=0;%>
	<div align="center">

		<div id="purchasedetail" align="center">
			<h1 style="color: blue;">CHI TIẾT NHẬP HÀNG</h1>
			<table class="table1" id="purchasedetailtable">
				<tr>			
					<th scope="col" abbr="Starter">Mã dược phẩm</th>
					<th scope="col" abbr="Starter">Tên dược phẩm</th>
					<th scope="col" abbr="Starter">Sô lượng lô</th>
					<th scope="col" abbr="Starter">Thành tiền</th>
					
				</tr>
			    
				 <c:forEach items="${importedDetailModel.importedDetailDTOs}" var="detail"
							varStatus="status">
							<tr class="<c:if test="${status.count % 2 == 0}">even</c:if>">
				<tr>
					<td>${detail.medicamentID}</td>
					<td>${detail.medicamentName}</td>
					<td>${detail.numberOfBatch}</td>
					<td>${detail.importCost}</td>

				</tr>
				</c:forEach>
			</table>
			<div id="purchasedetailpaging"></div> 
			
			<input id="closedetailtable" type="button" value="Đóng" />
			 <script type="text/javascript">
						var pager = new Pager('purchasedetailtable', 5);
						pager.init();
						pager.showPageNav('pager', 'purchasedetailpaging');
						pager.showPage(1);
					</script> 
		</div>
	</div>
</body>
</html>